package org.coopac.dao.impl;import java.util.List;
import org.coopac.dao.ILetraCreditoDAO;
import org.coopac.model.CoopacLetraCredito;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository("LetraCreditoDAO")
public class LetraCreditoDAO extends BaseDaoImpl<CoopacLetraCredito> implements ILetraCreditoDAO {

	@Autowired
	SessionFactory sessionFactory;

	@Override
	protected SessionFactory getSessionFactory() {
		return sessionFactory;}

	@Override
	public List<CoopacLetraCredito> listar() {
	return super.listar(CoopacLetraCredito.class);
	}

	@Override
	public void save(CoopacLetraCredito letracredito) {
		super.save(letracredito);
	}

	@Override
	public void update(CoopacLetraCredito letracredito) {
		super.update(letracredito);
	}

	@Override
	public void delete(CoopacLetraCredito letracredito) {
		super.delete(letracredito);
	}

	@Override
	public CoopacLetraCredito getById(int id){
		return (CoopacLetraCredito) super.getById(CoopacLetraCredito.class, id);
	}

}
